package com.bosssoft.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Li kexi
 * Created on 2021/8/19.9:12
 */
/**
 * 收入预算明细表
 */
@ApiModel(value="com-bosssoft-entity-po-FibIncomeBudgetDetailPO")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "fib_income_budget_detail")
public class FibIncomeBudgetDetailPO implements Serializable {
    /**
     * 单位id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="单位id")
    private Long id;

    /**
     * 收入预算表外键
     */
    @TableField(value = "ib_id")
    @ApiModelProperty(value="预算单位编码")
    private Long ibId;


    /**
     * 预算单位编码
     */
    @TableField(value = "dept_id")
    @ApiModelProperty(value="预算单位编码")
    private Long deptId;

    /**
     * 预算单位名称
     */
    @TableField(value = "dept_name")
    @ApiModelProperty(value="预算单位名称")
    private String deptName;

    /**
     * 金额
     */
    @TableField(value = "amount")
    @ApiModelProperty(value="金额")
    private BigDecimal amount;

    /**
     * 收入来源名称
     */
    @TableField(value = "issue_name")
    @ApiModelProperty(value="收入来源名称")
    private String issueName;

    /**
     * 所属项目名称
     */
    @TableField(value = "project_name")
    @ApiModelProperty(value="所属项目名称")
    private String projectName;

    /**
     * 收入类型
     */
    @TableField(value = "income_type")
    @ApiModelProperty(value="收入类型")
    private String incomeType;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @ApiModelProperty(value="创建人")
    private String createBy;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    @ApiModelProperty(value="更新人")
    private String updateBy;

    /**
     * 激活状态
     */
    @TableLogic
    @TableField(value = "deleted")
    @ApiModelProperty(value="激活状态")
    private Byte deleted;

    /**
     * 版本号
     */
    @Version
    @TableField(value = "version")
    @ApiModelProperty(value="版本号")
    private Integer version;

    private static final long serialVersionUID = 1L;
}